using PBMessage;
using UnityEngine;
using System.Collections;

public class SC_EnterReadyRoom_Handler :IPBHandler
{ 
    public void Exec(object packet) 
    {
        SC_EnterReadyRoom PacketData = (SC_EnterReadyRoom)packet;
        Game.UI.Close("GameHall");
        Game.Model.Destory<GameHallModel>();

        ReadyRoomModel  readyModel = Game.Model.NewGet<ReadyRoomModel>();
        readyModel.PlayerList = PacketData.PlayerList;
        readyModel.RoomID  = PacketData.RoomID;
        readyModel.Camp = PacketData.Camp;

        Game.UI.Show("ReadyRoom");
    }
}
